package com.dyzx.hbb.modules.sms.service;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

public interface SmsService {
    void sendVerificationCode(String phoneNumber);
    boolean validateSmsCode(@Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确") String phone, @NotBlank(message = "验证码不能为空") String smsCode);
    void sendNewPassword(@NotBlank @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确") String phoneNumber,String password);

}
